<?php

namespace backend\modules\system;

/**
 * sys module definition class
 */
class Moudle extends \yii\base\Module
{
    /**
     * @inheritdoc
     */
    public $controllerNamespace = 'backend\modules\system\controllers';

    /**
     * @inheritdoc
     */
    public function init()
    {
        parent::init();

        // custom initialization code goes here
    }

    /**
     * @inheritdoc
     */
    public function beforeAction($action)
    {
        if (parent::beforeAction($action)) {
            /* @var $action \yii\base\Action */
            $action->controller->getView()->params['breadcrumbs'][] = [
                'label' => '系统管理',

            ];
            return true;
        }
        return false;
    }
}
